// day.js

import dayjs from 'dayjs';

const dayjsPlugin = {
  install(app : any) {
    app.config.globalProperties.$formatDate = (timestamp :  any, format = 'YYYY-MM-DD HH:mm:ss') => {
      return dayjs(timestamp).format(format);
    };
  },
};

export default dayjsPlugin;
